package com.ysstech.etfmanage.feign;


import com.ysstech.common.entity.TreeNode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "yss-finance", fallback = FeignFinanceServiceFallback.class)
public interface FeignFinanceService {

    /**
     * 获取产品信息数据
     *
     * @param orgId
     * @return
     */
    @RequestMapping(value = "/financeAccount/queryAccountTreeByType", method = RequestMethod.POST)
    List<TreeNode> queryAccountTreeByType(@RequestParam("orgId") String orgId, @RequestParam("fundType") Integer fundType
            , @RequestParam("fype") Integer fype);

}
